<template>
	<div>

		<el-table :data="syslogData" style="width: 100%;margin-bottom: 20px;" row-key="id" border>
			<el-table-column prop="id" label="id" width="150"align="center">
			</el-table-column>
			<el-table-column prop="operation" label="操作步骤" align="center">
			</el-table-column>
			<el-table-column prop="method" label="方法名" align="center">
			</el-table-column>
			<el-table-column prop="params" label="参数" align="center">
			</el-table-column>
			<el-table-column prop="userName" label="账号" align="center">
			</el-table-column>
			<el-table-column prop="time" label="用时" align="center">
			</el-table-column>
			<el-table-column prop="createTime" label="创建时间" align="center">
			</el-table-column>
			<el-table-column prop="ip" label="ip地址" align="center">
			</el-table-column>
		</el-table>


	</div>
</template>

<script>
	export default {
		data() {
			return {
				syslogData: [],
			}
		},
		mounted() {
			this.initMenuData();
		},
		methods: {
			initMenuData() {
				this.$postRequest("/syslog/queryAllSyslog").then(res => {
					this.syslogData = res.data.tSyslogs;
				});
			},
		},
	}
</script>

<style>
</style>